package cn.tedu.ivos.user.pojo.entity;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.Date;

@Data
@Schema(title = "用户", description = "用户信息")
public class User {
    @Schema(description = "用户ID",example = "1L")
    private Long id;
    @Schema(description = "用户名",example = "admin")
    private String username;
    @Schema(description = "密码",example = "123456")
    private String password;
    @Schema(description = "邮箱",example = "admin@163.com")
    private String email;
    @Schema(description = "手机号",example = "13888888888")
    private String phone;
    @Schema(description = "年龄",example = "18")
    private Integer age;
    @Schema(description = "性别",example = "1")
    private int gender;
    @Schema(description = "创建时间",example = "2023-05-01 00:00:00")
    private Date creatTime;
    @Schema(description = "更新时间",example = "2023-05-01 00:00:00")
    private Date updateTime;
    @Schema(description = "状态",example = "1")
    private String status;
    @Schema(description = "等级",example = "1")
    private String level;
    @Schema(description = "上级ID",example = "1L")
    private Long parentId;

}
